<?php 

$mod='blank';
include("../includes/common.php");
include './head.php';
if($islogin==1){}else exit("<script language='javascript'>window.location.href='./login.php';</script>");
$rs=$DB->query("SELECT * FROM `panel_log` WHERE 1 order by id desc limit 20")->fetchAll();
?>
<div class="x-nav">
            <span class="layui-breadcrumb">
                <a href="">首页</a>
                <a>
                    <cite>网站登入记录</cite></a>
            </span>
            <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
                <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
            </a>
        </div> 
         <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                       <div class="layui-card-body ">

  <div class="layui-card-body ">
                            <table class="layui-table layui-form">
                                <thead>
                                    <tr> 
                                       <th>ID</th>
                                       <th>登陆ID</th>
                                       <th>登陆操作</th>
                                       <th>登录时间</th>
                                       <th>登陆IP</th>
                                       </tr>
                                </thead>
                                <tbody>
                       <?php
                    foreach($rs as $res){
                    echo '<tr><td><b>'.$res['id'].'</b></td><td>'.$res['uid'].'</td><td>'.$res['type'].'</td><td>'.$res['date'].'</td><td>'.$res['data'].'</td></td></tr>';
                  }?>

          </tbody>
        </table>
      </div>
                    </div>
                </div>
            </div>
        </div>

  <script>layui.use(['laydate', 'form'],
        function() {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#start' //指定元素
            });

            //执行一个laydate实例
            laydate.render({
                elem: '#end' //指定元素
            });
        });
      </script>